package com.ihighest.app.infox.adapter;

import java.util.ArrayList;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

/*
 * 农技里边viewpager的适配器
 */

public class Nj_Pager_Adapter extends FragmentPagerAdapter {
	ArrayList<Fragment> nj_viewpager_list;
	FragmentManager fm;

	public Nj_Pager_Adapter(FragmentManager fm, ArrayList<Fragment> nj_viewpager_list) {
		super(fm);
		this.fm = fm;
		this.nj_viewpager_list = nj_viewpager_list;
	}

	@Override
	public Fragment getItem(int arg0) {
		return nj_viewpager_list.get(arg0);
	}

	@Override
	public int getCount() {
		return nj_viewpager_list.size();
	}

}
